#!/bin/bash

nasm $1 -o out.bin
if [ $? -ne 0 ]; then
	echo "failed!"
	exit
fi
dd if=out.bin of=mbr.img bs=512 conv=notrunc
if [ $? -ne 0 ]; then
	echo "failed!"
	exit
fi
bochs -f bochsrc
